package com.wza.designPattern.ObserverPattern;

/**
 * <一句话功能简述>
 * <功能详细描述>
 *
 * @author Administrator
 * @version [版本号, 2018/11/30]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class OctalObserver extends Observer
{

    public OctalObserver(Subject subject)
    {
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update()
    {
        System.out.println("Octal String: "
                + Integer.toOctalString(subject.getState()));
    }
}